package com.xu.crawler.service.impl;

import com.xu.crawler.dao.TargetUrlsDao;
import com.xu.crawler.dao.entity.TargetUrlsDO;
import com.xu.crawler.service.TargetUrlsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TargetUrlsServiceImpl implements TargetUrlsService {

    @Resource
    private TargetUrlsDao targetUrlsDao;


    public List<TargetUrlsDO> queryTargetUrls() {
        return targetUrlsDao.queryTargetUrls();
    }

    public void saveTargetUrls(List<TargetUrlsDO> targetUrlsDOs) {
        targetUrlsDao.saveTargetUrls(targetUrlsDOs);
    }
}
